
package main

import (
	"log"
	"net/http"
	_ "net/http/pprof" //采集 HTTP Server 的运行时数据进行分析
	"time"
)
var datas []string
//执行处理的函数
func Add(str string) string {
	data := []byte(str)
	sData := string(data)
	datas = append(datas, sData)
	return sData
}
func main() {
	i := 0
	go func(i int) {
		for {
			i++
			log.Println(Add("hello jiangzhou"))
			time.Sleep(time.Second)
			if i>10{
				break
			}
		}
	}(i)
	http.ListenAndServe("127.0.0.1:6060", nil) //web 界面分析接口
}